<?
include('../seguridad.php');
include('../bd.php');
Conectar();
if($_POST[borrar]!='yes'){
$shape=strtolower($_POST[shape]);
$shape=ucfirst($shape);
$sql = "UPDATE shape SET shape='".$shape."' WHERE id='".$_POST[id]."'";
mysql_query($sql) or die(mysql_error());
}else if($_POST[borrar]=="yes"){
$sql = "DELETE FROM shape WHERE id='".$_POST[id]."'";
mysql_query($sql) or die(mysql_error());
}
Desconectar();
header('Location: ../products_shape.php');
?>